//
//  MarketScene.h
//  SpaceTrader
//
//  Created by Brandon Chastain on 10/26/12.
//  Copyright (c) 2012 The Hex Pistols. All rights reserved.
//
#include "SpaceTrader.h"
#include "Shopbutton.h"
#include "Player.h"
#include "Planet.h"
#include "Market.h"
#include <vector>

/*
 * This class is the interface that the player
 * uses to buy and sell the items in their inventory
 */
class MarketScene{
private:
	Market *market;
	bool isTrader;
    std::vector<ShopButton*> buttons;
	std::vector<int> prices;
	Planet *lastPlanet;
	static const int xOffset = 98;
	static const int yOffset = 10;
	static const int dY = 45;
	int differences[9];

    
public:
	
	//MarketScene(Player *thePlayer) : player(thePlayer) {};
	MarketScene(Market *market);
	MarketScene(Market *market, bool isTrader);
    MarketScene(const MarketScene &M);
    ~MarketScene();
    MarketScene& operator=(const MarketScene &M);
    
    state_t draw(SDL_Surface *screen, Planet *planet, Player *player, bool);
    
    void setUpButtons(const char** names, int qties[]);
    
    void setButtonColors(int differences[]);
};
